export const searchConfig = [
    {
        type: 'input',
        key: 'strategyId',
        attrs: {
            placeholder: 'TriggerID',
        }
    },
    {
        type: 'select',
        key: 'operationField',
        attrs: {
            placeholder: '修改字段',
        },
        options: [{
            value: 'strategyName',
            label: '策略名称',
        }, {
            value: 'strategyDesc',
            label: '策略描述',
        }, {
            value: 'content',
            label: '数据包内容',
        }, {
            value: 'priority',
            label: '优先级',
        }, {
            value: 'status',
            label: '状态',
        }, {
            value: '新增Trigger',
            label: '新增Trigger',
        }, {
            value: '逻辑删除Trigger',
            label: '逻辑删除Trigger',
        }]
    },
    {
        type: 'definition',
        dataIndex:'createBy',
        key: 'createBy',
        attrs: {
        }
    },

    {
        type: 'datetime',
        key: 'beginTime',
        attrs: {
            placeholder: '开始时间',
        }
    },
    {
        type: 'datetime',
        key: 'endTime',
        attrs: {
            placeholder: '结束时间',
        }
    },

]


export const tableColumns = [
    {
        title: 'TriggerID',
        dataIndex: 'strategyId',
        key: 'strategyId',
        scopedSlots: {customRender: 'strategyId'},
        width: 120,
        fixed: 'left'
    },
    {
        title: '操作人',
        dataIndex: 'createBy',
        key: 'createBy',
        width: 120,
    },
    {
        title: '操作时间',
        dataIndex: 'createTime',
        key: 'createTime',
        width: 300,
    },

    {
        title: '操作字段',
        dataIndex: 'operationField',
        key: 'operationField',
        width: 300,
    }, {
        title: '操作详情',
        dataIndex: 'operationDetail',
        key: 'operationDetail',
    },
]